package com.asohofrucol.model;

import java.io.Serializable;
import javax.persistence.*;


/**
 * The persistent class for the col_village database table.
 * 
 */
@Entity
@Table(name="col_village")
public class ColVillage implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	@Column(name="cod_village")
	private String codVillage;

	@Column(name="nam_village")
	private String namVillage;

	//bi-directional many-to-one association to ColDepartament
	@ManyToOne
	@JoinColumn(name="cod_departament")
	private ColDepartament colDepartament;

	//bi-directional many-to-one association to ColMunicipality
	@ManyToOne
	@JoinColumn(name="cod_municipality")
	private ColMunicipality colMunicipality;

	public ColVillage() {
	}

	public String getCodVillage() {
		return this.codVillage;
	}

	public void setCodVillage(String codVillage) {
		this.codVillage = codVillage;
	}

	public String getNamVillage() {
		return this.namVillage;
	}

	public void setNamVillage(String namVillage) {
		this.namVillage = namVillage;
	}

	public ColDepartament getColDepartament() {
		return this.colDepartament;
	}

	public void setColDepartament(ColDepartament colDepartament) {
		this.colDepartament = colDepartament;
	}

	public ColMunicipality getColMunicipality() {
		return this.colMunicipality;
	}

	public void setColMunicipality(ColMunicipality colMunicipality) {
		this.colMunicipality = colMunicipality;
	}

}